package thinking.java.initalization.and.clean.up;

/**
 * @author GaoFeng
 * @date 2020/1/3 13:51
 */
public class VarArgsOverload {
    public static void main(String args) {
        // 可变参数
        // varArgsOverload('a');
        // varArgsOverload('a', 'b');
        // varArgsOverload('a', 'b', 'c');

        varArgsOverload();

        // Ambiguous method call: both 'VarArgs.varArgsOverload(char, Character...)' and 'VarArgs.varArgsOverload(Character...)' match

        varArgsOverload2(1L);
        varArgsOverload2("abc");

    }

    public static void varArgsOverload(char ch, Character... chs) {

    }

    public static void varArgsOverload(Character... chs) {

    }

    public static void varArgsOverload2(Long... longParams) {

    }

    public static void varArgsOverload2(String... stringParams) {

    }
}
